package map;

public class FlatChunkStratumInfo {
	private int stratumCount;
	private int blockID;
	private int blockMeta;
	private int minY;

	public FlatChunkStratumInfo(int stratumCount, int blockID) {
		this.stratumCount = stratumCount;
		this.blockID = blockID;
	}

	public FlatChunkStratumInfo(int stratumCount, int blockID, int blockMeta) {
		this(stratumCount, blockID);
		this.blockMeta = blockMeta;
	}

	public int getCount() {
		return this.stratumCount;
	}

	public int getBlockID() {
		return this.blockID;
	}

	public int getBlockMeta() {
		return this.blockMeta;
	}

	public int getMinY() {
		return this.minY;
	}

	public void setMinY(int minY) {
		this.minY = minY;
	}

	public String toString() {
		String s = Integer.toString(this.blockID);

		if (this.stratumCount > 1) {
			s = this.stratumCount + "x" + s;
		}

		if (this.blockMeta > 0) {
			s = s + ":" + this.blockMeta;
		}

		return s;
	}
}
